package cn.yunhe.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.biz.IBedBiz;
import cn.yunhe.dao.BedMapper;
import cn.yunhe.entity.Bed;
@Service("bedBiz")
public class BedBizImpl implements IBedBiz {
	@Autowired
	private BedMapper bedmapper;
	
	public void setBedmapper(BedMapper bedmapper) {
		this.bedmapper = bedmapper;
	}

	@Override
	public List<Bed> FindAllBed() {
		// TODO Auto-generated method stub
		List<Bed> list=null;
		try {
			list = bedmapper.selectByExample(null);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
	}

}
